.default {
  width: 100%;
  height: 40px;
  border: 1px solid #dfe3e6;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 15px;
  font-family: 'ibm-plex-sans', Helvetica Neue, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.active {
  composes: default;
}

.bar {
  height: 100%;
  padding: 0 25px;
  position: relative;
  display: flex;
  align-items: center;
  font-family: 'ibm-plex-sans', Helvetica Neue, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.bar:hover {
  background-color: var(--selectionBarHover);
}

.barActive {
  composes: bar;
  width: 202px;
}

.filter {
  visibility: collapse;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  outline: none;
  border: none;
  margin: 0; /* Safari layout fix */
  /* Duplicate required for input */
  font-family: 'ibm-plex-sans', Helvetica Neue, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.default .filter {
  background-color: #ffffff;
  padding: 0 15px;
}

.bar .filter {
  outline: 2px solid var(--selectionBarOutline);
  outline-offset: -2px;
  background-color: var(--selectionBar);
  padding: 0 25px;
  color: var(--brightText);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
}

.bar .filter::placeholder {
  font-weight: normal;
  opacity: 1;
}

.filter::placeholder {
  font-weight: normal;
  opacity: 0.6;
}

.active .filter {
  visibility: visible;
}

.barActive .filter {
  visibility: visible;
}

.icon {
  margin-left: auto;
  fill: var(--blue);
}

.bar .icon {
  margin-left: 8px;
  fill: var(--brightText);
}

.menu {
  /* visibility: collapse; */
  /* position: absolute; */
  /* 1px for border */
  /* top: calc(100% + 1px);  */
  /* left: 0; */
  /* width: 100%; */
  /* box-shadow: 0px 3px 3px 0 rgba(0, 0, 0, 0.1); */
  /* 150 for topbar, 40 for margin */
  /* max-height: calc(100vh - 150px - 40px); */
  /* overflow-y: auto; */
  /* background-color: #ffffff; */
  /* color: rgb(21, 41, 53);
  z-index: 100; */

  visibility: collapse;
  z-index: 10;
  position: absolute;
  background-color: var(--secondaryBg);
  top: 100%;
  left: 0px;
  /* 150 for topbar, 40 for margin */
  max-height: calc(100vh - 150px - 40px);
  width: 100%;
  /* border-radius: 4px; */
  overflow: auto;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.23), 0 4px 8px 3px rgba(0, 0, 0, 0.11);
  border: 1px solid var(--dropDownBorder);

  color: var(--brightText);
}

.active .menu {
  visibility: visible;
}

.barActive .menu {
  visibility: visible;
}

.filtering {
  composes: menu;
}

/* .filtering .SelectionBar-DropDown-MenuItemWrapper:first-child {
  background-color: rgba(85, 150, 230, 0.15);
} */

/* .filtering .SelectionBar-DropDown-MenuItemWrapper:first-child:hover {
  background-color: rgba(85, 150, 230, 0.25);
} */

.menuItemWrapper,
.menuItemButton {
  height: 40px;
  padding: 0 15px;
  display: flex;
}

.menuItemWrapper:hover {
  background-color: var(--highlight);
}

.menuItemWrapper:only-child {
  background-color: var(--highlight);
}

/* .menuItemWrapper:hover {
  background-color: rgba(85, 150, 230, 0.1);
} */

/* .menuItemButton {
  background-color: rgba(85, 150, 230, 0.15);
} */

/* .menuItemButton:hover {
  background-color: rgba(85, 150, 230, 0.25);
} */

.menuItem {
  line-height: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  align-self: center;
}

.highlight {
  color: var(--primaryLink);
}

.menuItemButton {
  composes: menuItemWrapper;
  font-style: italic;
}
